package org.chs.ts.batch.constant;

import lombok.Getter;


/**
 * @author wuwei
 * @date 2024/11/20
 * @apiNote 日间跑批任务枚举
 */
@Getter
public enum TaskDailyStatusCodeEnum {

    TASK_ERROR("500","日间任务执行失败","500"),
    TASK_INIT_ERROR("500","日间任务初始化失败","500"),
    TASK_GETTASK_NULL_SUCCESS("201","日间任务抢夺成功-初始化请求失败","200"),
    TASK_GETTASK_ERROR("500","日间任务抢夺失败-请求失败","500"),
    TASK_GETTASK_RUNNINGERROR("501","日间任务抢夺失败-运行异常","500"),
    TASK_RUNNING_ERROR("500","日间任务抢夺失败-任务执行请求失败","500"),
    TASK_RUNNING_PREERROR("503","日间任务抢夺失败-任务执行异常","500"),
    TASK_RUNNING_RUNNINGERROR("501","日间任务抢夺失败-任务执行异常","500");

    TaskDailyStatusCodeEnum(String retCd,String retMsg,String taskRetCode) {
        this.retCd = retCd;
        this.retMsg = retMsg;
        this.taskRetCode = taskRetCode;
    }

    /**
     * 任务返回码
     */
    private final String retCd;
    /**
     * 任务返回信息
     */
    private final String retMsg;
    /**
     * 任务返回码对应的 controller Result 返回码
     */
    private final String taskRetCode;
}
